SET (libapitest_server_SRCS 
		api_test.c
		api_test.h
	)

SET (libapitest_client_SRCS
		api_test.c
		api_test.h
		api_test_client_wrapper.c
		${uffs_SOURCE_DIR}/src/uffs/uffs_crc.c
	)

IF (UNIX)
	SET (libapitest_server_SRCS ${libapitest_server_SRCS} api_test_server_posix.c)
	SET (libapitest_client_SRCS ${libapitest_client_SRCS} api_test_client_posix.c)
ENDIF()

IF (WIN32)
	SET (libapitest_server_SRCS ${libapitest_server_SRCS} api_test_server_win32.c)
	SET (libapitest_client_SRCS ${libapitest_client_SRCS} api_test_client_win32.c)
ENDIF()

SET (libapitest_sqlite3_SRCS
		${libapitest_client_SRCS}
		os_uffs.c
		os_uffs.h
	)

IF (UNIX)
INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/posix)
ENDIF()

IF (WIN32)
INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/platform/win32)
ENDIF()

INCLUDE_DIRECTORIES(${uffs_SOURCE_DIR}/src/inc)
ADD_LIBRARY(apitest_server STATIC ${libapitest_server_SRCS})
ADD_LIBRARY(apitest_client STATIC ${libapitest_client_SRCS})
IF (UNIX)
	ADD_LIBRARY(apitest_sqlite3 SHARED ${libapitest_sqlite3_SRCS})
ENDIF()



